from rest_framework import serializers
from .models import Order, Payment


class OrderSerializer(serializers.ModelSerializer):
    """
    订单序列化
    """
    class Meta:
        model = Order
        fields = '__all__'


class PaymentSerializer(serializers.ModelSerializer):
    """
    支付记录序列化
    """
    class Meta:
        model = Payment
        fields = '__all__'

